package com.hlab.fabrevealmenu.model;

import ohos.media.image.PixelMap;

/**
 * FABMenuItem
 *
 * @since 2021-05-14
 */
public class FABMenuItem {
    private static final int INT_DEFAULT = -1;
    private int id;
    private String title;
    private PixelMap iconPixelMap;
    private int iconResId = INT_DEFAULT;
    private boolean isEnabled = true;

    /**
     * FABMenuItem
     *
     * @param title title
     * @param iconResId iconResId
     */
    public FABMenuItem(String title,int iconResId) {
        this.title = title;
        this.iconResId = iconResId;
    }

    /**
     * FABMenuItem
     *
     * @param id id
     * @param title title
     * @param iconResId iconResId
     */
    public FABMenuItem(int id, String title,int iconResId) {
        this.id = id;
        this.title = title;
        this.iconResId = iconResId;
    }

    /**
     * FABMenuItem
     *
     * @param title title
     * @param iconBitmap iconBitmap
     */
    public FABMenuItem(String title, PixelMap iconBitmap) {
        this.title = title;
        this.iconPixelMap = iconBitmap;
    }

    public int getId() {
        return id;
    }

    public void setId(int id) {
        this.id = id;
    }

    public String getTitle() {
        return title;
    }

    public void setTitle(String title) {
        this.title = title;
    }

    public PixelMap getIconPixelMap() {
        return iconPixelMap;
    }

    public void setIconPixelMap(PixelMap iconPixelMap) {
        this.iconPixelMap = iconPixelMap;
    }

    public int getIconResId() {
        return iconResId;
    }

    public void setIconResId(int iconResId) {
        this.iconResId = iconResId;
    }

    public static int getIntDefault() {
        return INT_DEFAULT;
    }

    public boolean isEnabled() {
        return isEnabled;
    }

    public void setEnabled(boolean isAble) {
        this.isEnabled = isAble;
    }
}
